//用户数据模块
export default {
    namespaced:true,
    actions: {

    },
    mutations: {
        //修改及存储用户的信息对象
        setUser(state,value) {
            state.profile = value
        },
        //修改回跳路径的方法
        setredirectUrl(state,value) {
            state.redirectUrl = value
        }
    }, 
    state:() => ({
        //用户信息
        profile: {
            id:'',
            avatar:'',
            nickname:'',
            account:'',
            mobile:'',
            token:''
        },
        // 登陆后回跳路径
        redirectUrl:'/'
    }),
    getter: {

    }
}